<?php
/**
 * @category   Epic
 * @package    Epic_Cache
 * @author     Epic Core Team <rukanhitokiri@gmail.com>
 */
interface Epic_Cache_Interface
{
	/**
	 * Check if the cache file exists or expire
	 *
	 * @param string $file name file cache
	 * @return boolean
	 */
	public function exists($key);
	
	/**
	 * Save data to the cache
	 *
	 * @param string $file name file cache
	 * @param string $data data store
	 */
    public function set($key, $data);
    
    /**
     * Retrieve data from the cache
     *
     * @param string $file name file cache
     * @return null|string data from the cache file
     */
    public function get($key);
 
     /**
      * Delete the cache file
      * 
      * @param string $file name file cache
      * @return boolean
      */
    public function delete($key);
}